<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
	</head>

	<body>
		<form action="" method="post" enctype="multipart/form-data" target="uploadIframe">
			<input type="file" name="test" id="" />
			<input type="submit" value="提交" />
		</form>
		<iframe id="uploadIframe"></iframe>
	</body>
	<script>
		debugger;
		document.getElementById("uploadIframe").onload = function() {
			debugger;
			var doc = iframe.contentDocument ? iframe.contentDocument : frames[iframe.id].document;
			var response = doc.body && doc.body.innerHTML;
		}
		var result = {}; 
		result = {
			toString: function() {
				return "123";
			}
		}
		var add = function(a, b) {
			return a + b;
		}
		var sub=add.apply(null, [1, 2]);
		alert(sub);
		var Qua=function(){};
		Qua.prototype.get_status=function(){
			console.log(this);
			console.log(this.state);
		}
		Qua.prototype.get_status.apply({state:10})
	</script>

</html>